﻿@model Chaine.Models.EventModels
@{
    ViewBag.Title = Model.Title + " Upload Photo";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section maincontent{
    <h2 class="page-header">@ViewBag.Title</h2>
    @using (Html.BeginForm("upload", "AdminPhoto", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        <div>
            <div class="alert alert-info">
                Please upload JPG files.
            </div>
            <input type="file" name="files" multiple="" />
            @if (ViewData.ModelState["files"] != null)
            {
                <span class="alert alert-error">JPG file is allowed.</span>
            }
        </div>
        <div class="form-actions">
            <input type="submit" value="Upload" class="btn btn-primary" />
            @Html.ActionLink("Cancel", "index", null, new { @class = "btn" })
        </div>
    }
}
@section sidebar{
    @Html.Partial("~/views/shared/_AdminSidebar.cshtml")
}
